package org.dtrd.modules.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dtrd.modules.device.entity.po.DtrdEntRdBioland;
import org.dtrd.modules.device.entity.request.BindDeviceRequest;
import org.dtrd.common.api.vo.Result;

/**
 * @author 萧
 * @date 2021-09-01 00:02:01
 **/
public interface IDtrdEntRdBiolandService extends IService<DtrdEntRdBioland> {

    Result<?> bindDevice(BindDeviceRequest request);

    DtrdEntRdBioland selectOntByDeviceSnAndDeviceType(String serialNumber, String deviceType);

    /**
     * 查询用户绑定记录
     *
     * @param patientId
     * @param deviceCategory
     * @return
     */
    DtrdEntRdBioland getBindRecord(Integer patientId, Integer deviceCategory);
}
